<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>eRPC Generator (erpcgen): Group.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">eRPC Generator (erpcgen)
   &#160;<span id="projectnumber">Rev. 1.7.4</span>
   </div>
   <div id="projectbrief">NXP Semiconductors</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_group_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">Group.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright 2017 NXP</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * SPDX-License-Identifier: BSD-3-Clause</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#ifndef _EMBEDDED_RPC__GROUP_H_</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#define _EMBEDDED_RPC__GROUP_H_</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;</div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;Interface.h&quot;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;cpptempl.h&quot;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &lt;set&gt;</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// Classes</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"></span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceerpcgen.html">erpcgen</a> {</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_group.html">   27</a></span>&#160;<span class="keyword">class </span><a class="code" href="classerpcgen_1_1_group.html">Group</a></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;{</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_group.html#a6958e110daf1a2f2b67c8495fd93779c">   30</a></span>&#160;    <span class="keyword">typedef</span> std::vector&lt;Interface *&gt; <a class="code" href="classerpcgen_1_1_group.html#a6958e110daf1a2f2b67c8495fd93779c">interface_list_t</a>; </div><div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_group.html#a445d27f77f14b9577850ed5ac2252ced">   31</a></span>&#160;    <span class="keyword">typedef</span> std::vector&lt;Symbol *&gt; <a class="code" href="classerpcgen_1_1_group.html#a445d27f77f14b9577850ed5ac2252ced">symbols_list_t</a>;      </div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;    <span class="keyword">typedef</span> std::map&lt;Symbol *, std::set&lt;_param_direction&gt; &gt;</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_group.html#a3b4750210cd8a7976f1173059a24fa7f">   33</a></span>&#160;        <a class="code" href="classerpcgen_1_1_group.html#a3b4750210cd8a7976f1173059a24fa7f">symbol_directions_map_t</a>; </div><div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_group.html#af76d5c887e66fe0b796e0fe431821834">   40</a></span>&#160;    <a class="code" href="classerpcgen_1_1_group.html#af76d5c887e66fe0b796e0fe431821834">Group</a>(<span class="keyword">const</span> std::string name)</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    : m_name(name)</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    {</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    }</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;</div><div class="line"><a name="l00050"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_group.html#a810a3143fbce8fa25199c0f315af4b84">   50</a></span>&#160;    <span class="keyword">const</span> std::string &amp;<a class="code" href="classerpcgen_1_1_group.html#a810a3143fbce8fa25199c0f315af4b84">getName</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_name; }</div><div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classerpcgen_1_1_group.html#a81dcba5930c77239b675580dbd072fd8">addInterface</a>(<a class="code" href="classerpcgen_1_1_interface.html">Interface</a> *iface);</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_group.html#aa5e3e1667ee8648a1929c3b8679e8aa4">   64</a></span>&#160;    <span class="keyword">const</span> interface_list_t &amp;<a class="code" href="classerpcgen_1_1_group.html#aa5e3e1667ee8648a1929c3b8679e8aa4">getInterfaces</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_interfaces; }</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classerpcgen_1_1_group.html#a47b4d062b82dc4f60698ae208fe12b9d">addDirToSymbolsMap</a>(<a class="code" href="classerpcgen_1_1_symbol.html">Symbol</a> *symbol, _param_direction dir);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keyword">const</span> std::set&lt;_param_direction&gt; <a class="code" href="classerpcgen_1_1_group.html#a2a601a71e96f8280afcbb368c038f243">getSymbolDirections</a>(<a class="code" href="classerpcgen_1_1_symbol.html">Symbol</a> *symbol) <span class="keyword">const</span>;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_group.html#a6b1d2e14f40455a7fa91b406479b2585">   90</a></span>&#160;    <span class="keyword">const</span> symbols_list_t &amp;<a class="code" href="classerpcgen_1_1_group.html#a6b1d2e14f40455a7fa91b406479b2585">getSymbols</a>()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> m_symbols; }</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="classerpcgen_1_1_group.html#a99bacd4f6dcfb74a0608b7ad8807cbe3">setTemplate</a>(<a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> groupTemplate);</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classerpcgen_1_1_group.html#a2e5bec8a442cc88231eeb81a50b0e568">  104</a></span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> &amp;<a class="code" href="classerpcgen_1_1_group.html#a2e5bec8a442cc88231eeb81a50b0e568">getTemplate</a>() { <span class="keywordflow">return</span> m_template; }</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    std::string <a class="code" href="classerpcgen_1_1_group.html#ae73097061031208b54465344b5454b90">getDescription</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    interface_list_t m_interfaces;              </div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <a class="code" href="classerpcgen_1_1_group.html#a3b4750210cd8a7976f1173059a24fa7f">symbol_directions_map_t</a> m_symbolDirections; </div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;    symbols_list_t m_symbols;                   </div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;    <a class="code" href="classcpptempl_1_1data__map.html">cpptempl::data_map</a> m_template;              </div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;    std::string m_name;                         </div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;};</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;} <span class="comment">// namespace erpcgen</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">#endif // _EMBEDDED_RPC__GROUP_H_</span></div><div class="ttc" id="classerpcgen_1_1_group_html_a2a601a71e96f8280afcbb368c038f243"><div class="ttname"><a href="classerpcgen_1_1_group.html#a2a601a71e96f8280afcbb368c038f243">erpcgen::Group::getSymbolDirections</a></div><div class="ttdeci">const std::set&lt; _param_direction &gt; getSymbolDirections(Symbol *symbol) const </div><div class="ttdoc">This function returns set with symbol directions. </div><div class="ttdef"><b>Definition:</b> Type.cpp:425</div></div>
<div class="ttc" id="classerpcgen_1_1_group_html_af76d5c887e66fe0b796e0fe431821834"><div class="ttname"><a href="classerpcgen_1_1_group.html#af76d5c887e66fe0b796e0fe431821834">erpcgen::Group::Group</a></div><div class="ttdeci">Group(const std::string name)</div><div class="ttdoc">Constructor. </div><div class="ttdef"><b>Definition:</b> Group.h:40</div></div>
<div class="ttc" id="classerpcgen_1_1_group_html_a6b1d2e14f40455a7fa91b406479b2585"><div class="ttname"><a href="classerpcgen_1_1_group.html#a6b1d2e14f40455a7fa91b406479b2585">erpcgen::Group::getSymbols</a></div><div class="ttdeci">const symbols_list_t &amp; getSymbols() const </div><div class="ttdoc">This function returns vector with symbols. </div><div class="ttdef"><b>Definition:</b> Group.h:90</div></div>
<div class="ttc" id="classerpcgen_1_1_group_html_ae73097061031208b54465344b5454b90"><div class="ttname"><a href="classerpcgen_1_1_group.html#ae73097061031208b54465344b5454b90">erpcgen::Group::getDescription</a></div><div class="ttdeci">std::string getDescription() const </div><div class="ttdoc">This function returns description about the interface. </div><div class="ttdef"><b>Definition:</b> Type.cpp:437</div></div>
<div class="ttc" id="classerpcgen_1_1_symbol_html"><div class="ttname"><a href="classerpcgen_1_1_symbol.html">erpcgen::Symbol</a></div><div class="ttdoc">Base class for all named declarations in the IDL. </div><div class="ttdef"><b>Definition:</b> Symbol.h:27</div></div>
<div class="ttc" id="classerpcgen_1_1_group_html_a47b4d062b82dc4f60698ae208fe12b9d"><div class="ttname"><a href="classerpcgen_1_1_group.html#a47b4d062b82dc4f60698ae208fe12b9d">erpcgen::Group::addDirToSymbolsMap</a></div><div class="ttdeci">void addDirToSymbolsMap(Symbol *symbol, _param_direction dir)</div><div class="ttdoc">This function will add direction for specified symbol held in a symbol map. </div><div class="ttdef"><b>Definition:</b> Type.cpp:399</div></div>
<div class="ttc" id="classerpcgen_1_1_group_html_a2e5bec8a442cc88231eeb81a50b0e568"><div class="ttname"><a href="classerpcgen_1_1_group.html#a2e5bec8a442cc88231eeb81a50b0e568">erpcgen::Group::getTemplate</a></div><div class="ttdeci">cpptempl::data_map &amp; getTemplate()</div><div class="ttdoc">This function returns group template. </div><div class="ttdef"><b>Definition:</b> Group.h:104</div></div>
<div class="ttc" id="classerpcgen_1_1_group_html_a810a3143fbce8fa25199c0f315af4b84"><div class="ttname"><a href="classerpcgen_1_1_group.html#a810a3143fbce8fa25199c0f315af4b84">erpcgen::Group::getName</a></div><div class="ttdeci">const std::string &amp; getName() const </div><div class="ttdoc">This function returns the group name. </div><div class="ttdef"><b>Definition:</b> Group.h:50</div></div>
<div class="ttc" id="classerpcgen_1_1_group_html_a6958e110daf1a2f2b67c8495fd93779c"><div class="ttname"><a href="classerpcgen_1_1_group.html#a6958e110daf1a2f2b67c8495fd93779c">erpcgen::Group::interface_list_t</a></div><div class="ttdeci">std::vector&lt; Interface * &gt; interface_list_t</div><div class="ttdef"><b>Definition:</b> Group.h:30</div></div>
<div class="ttc" id="classerpcgen_1_1_group_html_a445d27f77f14b9577850ed5ac2252ced"><div class="ttname"><a href="classerpcgen_1_1_group.html#a445d27f77f14b9577850ed5ac2252ced">erpcgen::Group::symbols_list_t</a></div><div class="ttdeci">std::vector&lt; Symbol * &gt; symbols_list_t</div><div class="ttdef"><b>Definition:</b> Group.h:31</div></div>
<div class="ttc" id="classerpcgen_1_1_group_html"><div class="ttname"><a href="classerpcgen_1_1_group.html">erpcgen::Group</a></div><div class="ttdoc">An interface that contains functions. </div><div class="ttdef"><b>Definition:</b> Group.h:27</div></div>
<div class="ttc" id="classerpcgen_1_1_group_html_a3b4750210cd8a7976f1173059a24fa7f"><div class="ttname"><a href="classerpcgen_1_1_group.html#a3b4750210cd8a7976f1173059a24fa7f">erpcgen::Group::symbol_directions_map_t</a></div><div class="ttdeci">std::map&lt; Symbol *, std::set&lt; _param_direction &gt; &gt; symbol_directions_map_t</div><div class="ttdef"><b>Definition:</b> Group.h:33</div></div>
<div class="ttc" id="classcpptempl_1_1data__map_html"><div class="ttname"><a href="classcpptempl_1_1data__map.html">cpptempl::data_map</a></div><div class="ttdef"><b>Definition:</b> cpptempl.h:190</div></div>
<div class="ttc" id="classerpcgen_1_1_group_html_a99bacd4f6dcfb74a0608b7ad8807cbe3"><div class="ttname"><a href="classerpcgen_1_1_group.html#a99bacd4f6dcfb74a0608b7ad8807cbe3">erpcgen::Group::setTemplate</a></div><div class="ttdeci">void setTemplate(cpptempl::data_map groupTemplate)</div><div class="ttdoc">This function will set group template. </div><div class="ttdef"><b>Definition:</b> Type.cpp:420</div></div>
<div class="ttc" id="classerpcgen_1_1_interface_html"><div class="ttname"><a href="classerpcgen_1_1_interface.html">erpcgen::Interface</a></div><div class="ttdoc">An interface that contains functions. </div><div class="ttdef"><b>Definition:</b> Interface.h:28</div></div>
<div class="ttc" id="classerpcgen_1_1_group_html_a81dcba5930c77239b675580dbd072fd8"><div class="ttname"><a href="classerpcgen_1_1_group.html#a81dcba5930c77239b675580dbd072fd8">erpcgen::Group::addInterface</a></div><div class="ttdeci">void addInterface(Interface *iface)</div><div class="ttdoc">This function will add pointer to interface into vector of group interfaces. </div><div class="ttdef"><b>Definition:</b> Type.cpp:393</div></div>
<div class="ttc" id="namespaceerpcgen_html"><div class="ttname"><a href="namespaceerpcgen.html">erpcgen</a></div><div class="ttdef"><b>Definition:</b> AstNode.h:25</div></div>
<div class="ttc" id="classerpcgen_1_1_group_html_aa5e3e1667ee8648a1929c3b8679e8aa4"><div class="ttname"><a href="classerpcgen_1_1_group.html#aa5e3e1667ee8648a1929c3b8679e8aa4">erpcgen::Group::getInterfaces</a></div><div class="ttdeci">const interface_list_t &amp; getInterfaces() const </div><div class="ttdoc">This function returns vector with pointers to interfaces belonging to the group. </div><div class="ttdef"><b>Definition:</b> Group.h:64</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.5-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul class="foot">
    <li class="footer">Copyright 2016-2020 NXP Semiconductors. All rights reserved.
    </li>
  </ul>
</div>
</body>
</html>
